
<ul class="pagination">
    {{$page := .Page}}
    <li class="prev{{if eq $page 1}} disabled{{end}}">
        <a href="{{.URL .PrevPage}}">
            <span class="fa fa-angle-left"></span>&nbsp;{{"上一页"|T}}
        </a>
    </li>
    {{range $k,$v := .List}}
    <li{{if eq $v $page}} class="active"{{end}}>
        <a href="{{$.URL $v}}">{{$v}}</a>
    </li>
    {{end}}
    <li class="next{{if ge $page .Pages}} disabled{{end}}">
        <a href="{{.URL .NextPage}}">
            {{"下一页"|T}}&nbsp;<span class="fa fa-angle-right"></span>
        </a>
    </li>
</ul>
